import logging


def init(case):
    if case == 1:
        logging.basicConfig(
            filename='logs/app.log',
            level=logging.DEBUG,
            format='【%(levelname)s】%(asctime)s %(filename)s[line:%(lineno)d] %(message)s',
            datefmt='%Y-%m-%d %H:%M:%S')
    else:
        logging.basicConfig(
            filename='logs/app.log',
            level=logging.DEBUG,
            format='【%(levelname)s】%(asctime)s %(filename)s[line:%(lineno)d] %(message)s',
            datefmt='%Y-%m-%d %H:%M:%S')
    return logging
